package com.hphs.controller;

import com.hphs.exception.MyException;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/hello")
public class HelloController {

    @GetMapping
    public String hello(){
        //int i=1/0;
//        if(1==1){
//            throw new MyException(886,"报错l兄弟自己看看");
//        }
        return "hello vue";
    }
}
